package org.rcgwt.client.ui.validator;

import org.rcgwt.client.ui.fields.ValidatedTextField;

import com.google.gwt.core.client.GWT;

/**
 * A factory which recovers a ClientValidator by its name.
 * 
 * @author Elian
 * 
 */

public interface ValidatorRepositoryFactory {

	ValidatorRepositoryFactory INSTANCE = GWT
			.create(ValidatorRepositoryFactory.class);

	void applyValidator(ValidatedTextField<?> textBox, String validatorName);
}
